import request from '@/utils/request'

// 查询量化考核列表
export function myStudent(query) {
  return request({
    url: '/quantify/student/my',
    method: 'get',
    params: query
  })
}

// 查询量化考核列表
export function teacherStudent(query) {
  return request({
    url: '/quantify/student/teacher',
    method: 'get',
    params: query
  })
}
// 查询量化考核列表
export function listStudent(query) {
  return request({
    url: '/quantify/student/list',
    method: 'get',
    params: query
  })
}


// 查询量化考核详细
export function getStudent(id) {
  return request({
    url: '/quantify/student/' + id,
    method: 'get'
  })
}

// 新增量化考核
export function addStudent(data) {
  return request({
    url: '/quantify/student',
    method: 'post',
    data: data
  })
}

// 修改量化考核
export function updateStudent(data) {
  return request({
    url: '/quantify/student',
    method: 'put',
    data: data
  })
}

// 删除量化考核
export function delStudent(id) {
  return request({
    url: '/quantify/student/' + id,
    method: 'delete'
  })
}

// 导出量化考核
export function exportStudent(query) {
  return request({
    url: '/quantify/student/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/quantify/student/importTemplate',
    method: 'get'
  })
}